import React, { Component } from 'react';
class MyInput extends Component {
  state={
    inpValue:""
  }
  handleChange=(e)=>{
    this.setState({ inpValue:e.target.value  });
  }
  render() {
    return (
      <>
        <input onChange={this.handleChange}  value={this.state.inpValue} type="text" />
      </>
    );
  }
}
export default MyInput;